Skip to content

fix fmt.Errorf("%w", err) on err == nil - #187

Merged
AkihiroSuda merged 1 commit into
containerd:mainfrom
AkihiroSuda:fix-wrap
Oct 14, 2021
Merged

fix fmt.Errorf("%w", err) on err == nil#187
AkihiroSuda merged 1 commit into
containerd:mainfrom
AkihiroSuda:fix-wrap

Conversation

@AkihiroSuda

Copy link
Copy Markdown
Member

When err is nil, fmt.Errorf("....: %w", err) should not be returned

Thanks to @simonflood for reporting this in rancher-sandbox/rancher-desktop#771 (comment)

When err is nil, `fmt.Errorf("....: %w", err)` should not be returned

Reported in rancher-sandbox/rancher-desktop issue 771

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda

Copy link
Copy Markdown
Member Author

We should release v0.2.1 after merging this

@estesp estesp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpuguy83 cpuguy83 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AkihiroSuda
AkihiroSuda merged commit b6b5198 into containerd:main Oct 14, 2021
@AkihiroSuda

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants